import '@/utils/keyboardAndMouse'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import { createPinia } from 'pinia'
import 'reset-css'
import 'virtual:windi.css'
import { createApp } from 'vue'
import App from './App.vue'
import { router } from './routers'
import './style.css'

const pinia = createPinia()
const app = createApp(App)

app.use(ElementPlus)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.use(router)
app.use(pinia)

app.mount('#app').$nextTick(() => {
    // Use contextBridge
    // window.ipcRenderer.on('main-process-message', (_event, message) => {
    //   console.log(message)
    // })
})
